package zhao.tx.eecs.Tools;

import android.util.Log;

import java.net.HttpCookie;
import java.util.List;

/**
 * Created by ishishuji on 14/11/28.
 */
public class CookieTools {

    public static boolean hasExpired ( String cookie ) {
        List<HttpCookie> cookieList = HttpCookie.parse ( cookie );
        HttpCookie httpCookie = cookieList.get ( 0 );
        if ( httpCookie.hasExpired (  ) ) {
            return true;
        } else {
            return false;
        }
    }

}
